package com.qjl.shopping.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @Author liguanghui
 * @Date 2023/5/3
 */
@Data
@TableName("shopcar")
public class ShopCar {
    @TableId(value = "shopcar_id", type = IdType.AUTO)
    private int id;
    @TableField("shopcar_user_id")
    private int userId;
    @TableField("shopcar_item_id")
    private int itemId;
    @TableField("shopcar_item_num")
    private int itemNum;
    @TableField("shopcar_status")
    private int status;


    @TableField(exist = false)
    private User user;
    @TableField(exist = false)
    private Item item;
}
